package cn.thornbird.orgsync.model.wechat;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CreateUserResponse extends Response {

    @JsonProperty("created_department_list")
    private DepartmentInfoList createdDepartmentList;


    @Data
    public static class DepartmentInfoList {

        @JsonProperty("department_info")
        private List<DepartmentInfo> departmentInfo;

    }


    @Data
    public static class DepartmentInfo {

        @JsonProperty("id")
        private Long id;

        @JsonProperty("name")
        private String name;

    }

}
